import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'productBall/getList',
    data: info,
    method: 'post'
  })
}

export const add = info => {
  return axios.request({
    url: 'productBall/add',
    data: info,
    method: 'post'
  })
}

export const put = info => {
  return axios.request({
    url: 'productBall/edit',
    data: info,
    method: 'post'
  })
}

export const del = info => {
  return axios.request({
    url: 'productBall/del',
    data: info,
    method: 'post'
  })
}
export const getDetail = info => {
  return axios.request({
    url: 'productBall/detail',
    data: info,
    method: 'post'
  })
}

export const getVenueList = info => {
  return axios.request({
    url: 'productBall/getVenueList',
    data: info,
    method: 'post'
  })
}
export const estate = info => {
  return axios.request({
    url: 'productBall/estate',
    data: info,
    method: 'post'
  })
}
export const getProductBallModel = info => {
  return axios.request({
    url: 'productBall/getProductBallModel',
    data: info,
    method: 'post'
  })
}

export const setPrive = info => {
  return axios.request({
    url: 'productBall/setPrive',
    data: info,
    method: 'post'
  })
}
export const setModelEstate = info => {
  return axios.request({
    url: 'productBall/setModelEstate',
    data: info,
    method: 'post'
  })
}
export const setSessionsEstate = info => {
  return axios.request({
    url: 'productBall/setSessionsEstate',
    data: info,
    method: 'post'
  })
}

export const editSessionsDate = info => {
  return axios.request({
    url: 'productBall/editSessionsDate',
    data: info,
    method: 'post'
  })
}

export const batchSetPrive = info => {
  return axios.request({
    url: 'productBall/batchSetPrive',
    data: info,
    method: 'post'
  })
}

export const modeSwitch = info => {
  return axios.request({
    url: 'productBall/modeSwitch',
    data: info,
    method: 'post'
  })
}

export const getBallModelLog = info => {
  return axios.request({
    url: 'productBall/getBallModelLog',
    data: info,
    method: 'post'
  })
}

export const setDaysPrive = info => {
  return axios.request({
    url: 'productBall/setDaysPrive',
    data: info,
    method: 'post'
  })
}
